<?php 
// this file and function checked admin session value stored or not
require_once '../model/testimonials.php';
require_once '../model/users.php';
require_once '../includes/classes/pagination_class.php';	

// create object
$testimonialObj = new Model_Testimonial();
$user           = new Model_Users(); 

// GET VARIABLES WITH SORT , PAGE ,ORDER BY   VARIABLE   WHICH ARE 
	// HIDDEN VARIABLES
    
	$page = $_GET['page'];
	$id   = base64_decode($_GET['id']); 
	$user_id = base64_decode($_GET['uid']); 
	
	
	// CALL MODAL  HERE TO DETAIL news
	$details	 = $testimonialObj->list_TestimonialDetailsById($id);
	//echo "<pre>".print_r($details);exit;
	$smarty->assign('testimonialDetails',$details);
	$userDetails = $user->getUserDetailsByUserId($user_id);
	$smarty->assign("userArray",$userDetails); 

		//$userResult = $UserObj -> getUserValueById($newsResult['user_id']);
		//$smarty->assign("userResult",$userResult); 
	/*echo "<pre>";
	print_r($newsletterList); exit;*/ 
	
	
	## Set active class variable for left menu  (main menu and sub menu)
$smarty->assign('activeclass', 'testimonial');
$smarty->assign('mainmenu', '3');

$smarty->display(TEMPLATEDIR_ADMIN . 'testimonials/testimonial_details.tpl');
unset($smarty);

?>